//
//  Myuser.h
//  coba-iOS
//
//  Created by 郭四虎 on 15/12/11.
//  Copyright © 2015年 YouKu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Myuser : NSObject

@property (copy, nonatomic) NSString *login_id;
@property (copy, nonatomic) NSString *name;
@property (copy, nonatomic) NSString *icon;
@property (copy, nonatomic) NSString *phone;
@property (copy, nonatomic) NSString *login_date;
@property (copy, nonatomic) NSString *sex;
@property (copy, nonatomic) NSString *birthday;
@property (copy, nonatomic) NSString *signTime;
//连续签到次数
@property (copy, nonatomic) NSString *signNum;
//签到总次数
@property (copy, nonatomic) NSString *signTotal;
//签到总积分
@property (copy, nonatomic) NSString *allTotalIntegral;
@property (copy, nonatomic) NSString *integralTotal;
@property (copy, nonatomic) NSString *incrementItg;
@property (copy, nonatomic) NSString *signCycle;
+ (instancetype)sharedUser;
+ (BOOL)isLogined;
- (void)cleanUser;

+ (NSString *)userid:(NSString *)defaultValue;

+ (NSString *)username:(NSString *)defaultValue;

+ (NSString *)getIPAddress;
//+ (NSString *)getIPAddress:(BOOL)preferIPv4;

+ (void)alertWithTitle:(NSString *)title Msg:(NSString *)msg target:(UIViewController *)target action:(void(^)(void))act ;

+ (void)showRedPoint:(UIViewController *)vc index:(NSInteger)num;
+ (void)hideRedPoint:(UIViewController *)vc;

+ (BOOL)valiMobile:(NSString *)mobilePhone;

@end
